/**
 * 
 */
package com.hera.process.config.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.hera.base.dao.repository.BaseRepository;
import com.hera.process.config.domain.ParameterDetail;

/**
 * @author cmontes
 *
 */
public interface DetailParameterDao extends
		BaseRepository<ParameterDetail, Long> {
	public List<ParameterDetail> findByParameterIdParameter(Long idParameter);
	
	
	@Modifying
	@Transactional
	@Query("delete from ParameterDetail o where o.parameter.idParameter = ?")
	void deleteByParameter(Long idParameter);

}
